<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>派生选择器</title>
		<style>
			  #d1 div div span{
				background: #aa00ff;
				font-size: 50px;
			}
			.dl div div s{
				background: red;
			}
			.dl div div div s{
				background: green;
			}
			
		</style>
	</head>
	<body>
		<div class="dl">
			<div> 
			<p>段落1</p>
		<div>
				<s>删除线</s>
				<div>
					<s>删除线</s>
				</div>
		</div>
			</div>
		<div>
				<p>段落2</p>
		</div>
		</div>
		
		
		
		
		
		<hr>
		<div id="d1">
			<div>
			<p>段落</p>
			<span>行内1</span>
		<div>
			<span>行内2</span>
		</div>
		</div>
		</div>
	</body>
</html>